package com.ruoyi.project.oms.paeaAuAuditFifldInfo.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.oms.paeaAuAuditFifldInfo.mapper.PaeaAuAuditFifldInfoMapper;
import com.ruoyi.project.oms.paeaAuAuditFifldInfo.domain.PaeaAuAuditFifldInfo;
import com.ruoyi.project.oms.paeaAuAuditFifldInfo.service.IPaeaAuAuditFifldInfoService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 预警头信息Service业务层处理
 *
 * @author gang.wei
 * @date 2020-03-24
 */
@Service
public class PaeaAuAuditFifldInfoServiceImpl extends ServiceImpl<PaeaAuAuditFifldInfoMapper, PaeaAuAuditFifldInfo> implements IPaeaAuAuditFifldInfoService
{
    @Autowired
    private PaeaAuAuditFifldInfoMapper paeaAuAuditFifldInfoMapper;

    /**
     * 查询预警头信息
     *
     * @param id 预警头信息ID
     * @return 预警头信息
     */
    @Override
    public PaeaAuAuditFifldInfo selectPaeaAuAuditFifldInfoById(String id)
    {
        return paeaAuAuditFifldInfoMapper.selectPaeaAuAuditFifldInfoById(id);
    }

    /**
     * 查询预警头信息列表
     *
     * @param paeaAuAuditFifldInfo 预警头信息
     * @return 预警头信息
     */
    @Override
    public List<PaeaAuAuditFifldInfo> selectPaeaAuAuditFifldInfoList(PaeaAuAuditFifldInfo paeaAuAuditFifldInfo)
    {
        return paeaAuAuditFifldInfoMapper.selectPaeaAuAuditFifldInfoList(paeaAuAuditFifldInfo);
    }

    /**
     * 新增预警头信息
     *
     * @param paeaAuAuditFifldInfo 预警头信息
     * @return 结果
     */
    @Override
    public int insertPaeaAuAuditFifldInfo(PaeaAuAuditFifldInfo paeaAuAuditFifldInfo)
    {
        return paeaAuAuditFifldInfoMapper.insertPaeaAuAuditFifldInfo(paeaAuAuditFifldInfo);
    }

    /**
     * 修改预警头信息
     *
     * @param paeaAuAuditFifldInfo 预警头信息
     * @return 结果
     */
    @Override
    public int updatePaeaAuAuditFifldInfo(PaeaAuAuditFifldInfo paeaAuAuditFifldInfo)
    {
        return paeaAuAuditFifldInfoMapper.updatePaeaAuAuditFifldInfo(paeaAuAuditFifldInfo);
    }

    /**
     * 删除预警头信息对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaAuAuditFifldInfoByIds(String ids)
    {
        return paeaAuAuditFifldInfoMapper.deletePaeaAuAuditFifldInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除预警头信息信息
     *
     * @param id 预警头信息ID
     * @return 结果
     */
    @Override
    public int deletePaeaAuAuditFifldInfoById(String id)
    {
        return paeaAuAuditFifldInfoMapper.deletePaeaAuAuditFifldInfoById(id);
    }
}
